<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<include file="Public/title" />



</head>

<body>
<div class="mainWrap">
    
    <!--标题-->
    <div class="mainWrapHeader">
        <h1 class="mainWrapTit">{$seotitle}</h1>
    </div>
    <!--标题-->
    
    <form action="{:U('save',array('action'=>'edit'))}" method="post" class="dataForm" id="dataForm">
    <div class="mainWrapBd">
        <div class="tab-con" id="tab-works">
            <table cellpadding="0" border="0" cellspacing="0" class="stdedit">
                <tr>
                    <th>标题</th>
                    <td><input type="text" name="title" id="title" class="sys_text sys_text250" value="{$info['title']}" /></td>
                </tr>
                <tr>
                    <th>简介</th>
                    <td><input type="text" name="description" id="description" class="sys_text sys_text250"  value="{$info['description']}"/></td>
                </tr>

                <tr>
                    <th>封面</th>
                    <td>
                        <input type="text" name="surface_img" id="surface_img" class="sys_text sys_text50" value="{$info['surface_img']}" readonly/>
                        <a href="javascript:;" onclick="getOneFile('surface_img', 'image')" class="btn btn_orange btn_inboxo"><span>上传</span></a>
                    </td>                    
                </tr>

                <tr>
                    <th>作者</th>
                    <td>
                        <select name="teacher_id">
                            <option value="0">请选择老师</option>
                            <volist name="categorys" id="v">
                            <option value="{$v['id']}" <if condition="$info['teacher_id'] eq $v['id']">selected</if>>{$v['nickname']}</option>
                            </volist>
                        </select>
                    </td>
                </tr>

                <tr>
                    <th>期数</th>
                    <td>
                        <?php
                            $period = M('period a')->order("a.id desc")->select();
                            $arr = explode(',',$info['period']);
                        ?>
                        

                        <div class="setWrap ruleWrap ruleWrapCur">
                            <div class="setWrapBody">
                                <ul class="clearfix ruleList">
                                    <volist name="period" id="foo">
                                    <li><label><input type="checkbox" name="period[]" <if condition="in_array($foo['id'],$arr)">checked="checked"</if> value="{$foo['id']}"> {$foo['name']}</label></li>
                                    </volist>
                                </ul>
                            </div>
                        </div>

                    </td>
                </tr>

                <tr>
                    <th>视频</th>
                    <td>
                        <div role="tabpanel" class="tab-pane fade in active" id="demo" aria-labelledby="demo-tab">

                            <div class="row" style="margin-top: 20px;">

                                <input type="hidden" id="domain" value="http://pj9atjz9s.bkt.clouddn.com/">
                                <input type="hidden" id="uptoken_url" value="uptoken">
                                
                                <div class="col-md-12">
                                    <div id="container" style="position: relative;">
                                        <!-- <a class="btn btn_orange btn_inboxo" id="pickfiles" style="position: relative; z-index: 1;">
                                            <i class=""></i>
                                            <span>选择文件</span>

                                        </a> -->
                                        <input type="text" name="video_url" id="video_url" class="sys_text sys_text230" value="{$info['video_url']}" readonly/>
                                    <div id="html5_1aj3rtennnga1n5h927gjn8343_container" class="moxie-shim moxie-shim-html5" style="position: absolute; top: 0px; left: 0px; width: 171px; height: 46px; overflow: hidden; z-index: 0;"><input id="html5_1aj3rtennnga1n5h927gjn8343" type="file" style="font-size: 999px; opacity: 0; position: absolute; top: 0px; left: 0px; width: 100%; height: 100%;" multiple="" accept=""></div></div>
                                </div>
                                <div style="display:none" id="success" class="col-md-12">
                                    <div class="alert-success">
                                        上传成功
                                    </div>
                                </div>
                                <div class="col-md-12 ">
                                    <table class="table table-striped table-hover text-left" style="margin-top:40px;display:none">
                                       <!--  <thead>
                                         <tr>
                                           <th class="col-md-4">文件名</th>
                                           <th class="col-md-2">大小</th>
                                           <th class="col-md-6">详情</th>
                                         </tr>
                                       </thead> -->
                                        <tbody id="fsUploadProgress">
                                        </tbody>
                                    </table>
                                </div>
                            </div>

                        </div>
                        

                        <!-- <input type="text" name="thumb" id="thumb" class="sys_text sys_text50" />
                        <a href="javascript:;" onclick="getOneFile('thumb', 'image')" class="btn btn_orange btn_inboxo"><span>上传</span></a> -->
                    </td>                    
                </tr>
                
                <!-- <tr>
                    <th>排序</th>
                    <td><input type="text" name="sortid" id="sortid" value="{$maxSortId|default=0}" class="sys_text sys_text50" /></td>
                </tr> -->
    
                <tr>
                    <th>是否热门/推荐</th>
                    <td><label><input type="checkbox" name="is_hot" checked="checked" value="1" /> 是</label></td>
                </tr>

                <tr>
                    <th>是否启用</th>
                    <td><label><input type="checkbox" name="status" checked="checked" value="1" /> 启用</label></td>
                </tr>

                <tr>
                    <th>备注</th>
                    <td><input type="text" name="remark" id="remark" class="sys_text" value="{$info['remark']}"/></td>
                </tr>                        
                
            </table>

            <input type="hidden" name="id" value="{$info['id']}">

            
            
        </div>        
        
        <div class="stdeditSubmit"><input type="submit" class="submit" value="提 交" /> <input type="button" value="返回上一页" class="reset" onclick="history.go(-1);" /></div>
    </div>
    </form>
    
</div>
</body>
</html>

